myUtil = {
	onHttp : function angularHttp($http, method, url, params, data, callback) {
    $http({
        method: method,
        url: url,
        params: params,
        data: data
    }).success(function (data, status, headers, config) {
        callback(data);
    }).error(function (data, status, headers, config) {
        alert('server error');
        w = window.open();
        w.document.write(data);
    });    	
}

}


